import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SmrzPageComponent } from './smrz/index.component';
import { SmrzActivate } from 'src/app/core/auth/auth.guard';
import { HelpComponent } from '../member-center/help/help';

const routes: Routes = [
    {
        path: '',
        children: [
            {
                path: '',
                redirectTo: '',
            },
            {
                path: 'smrz',
                component: SmrzPageComponent,
                // resolve: {
				// 	pageDel: SmrzActivate,
				// },
                data: {
                    title: '实名认证',
                    translate: 'pages.smrz'
                    
                }
            },
            {
                path: 'help',
                component: HelpComponent,
                data: {
                    title: 'help',
                    translate: 'pages.help'
                }
            },
            {
                path: '**',
                redirectTo: 'login'
            }
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule],
    providers: [SmrzActivate]
  })
  export class PagesRoutingModule {}
